<?
/*
 * Webing - The SNS Blog
 *
 * Copyright (c) 2009 Webing. All rights reserved.
 *
 * This is init
 */
 /*$Id: init.php 66 2009-08-11 09:57:36Z chopins.xiao $*/

class init
{
    public function __construct()
    {
        set_error_handler(webing_error::error);
        session_start();
        include ROOT . 'config.php';
        $config['db'] = new mysqldb();
        $config['widget'] = new widget();
        $config['lng'] = new language();
        $config['request'] = new requset();
        $config['widget']->set_config($config);
        return $config;
    }
}
?>